package o;

import com.huawei.appgallery.agwebview.whitelist.WapDomainInfo;
import com.huawei.hwCloudJs.JsClientApi;
import com.huawei.hwCloudJs.JsClientApi.SdkOpt.Builder;
import com.huawei.hwCloudJs.service.hms.HmsCoreApi;
import java.util.ArrayList;
import java.util.List;

public class baz {
    public static void ˎ() {
        JsClientApi.registerJsApi(HmsCoreApi.class);
        JsClientApi.setJSOption(new Builder().setShowAuthDlg(false).build());
        JsClientApi.registerValidateWhiteListListener(new baw());
    }

    public static void ˏ() {
        ॱ(bbd.ˎ());
    }

    public static void ॱ(List<WapDomainInfo> list) {
        azh.ˏ.ˋ("JSSDKConfig", "registerWhiteList");
        if (list != null && list.size() != 0) {
            List arrayList = new ArrayList();
            for (WapDomainInfo wapDomainInfo : list) {
                if (!(dof.ˋ(wapDomainInfo.ˊ()) || bbd.ʼ(wapDomainInfo.ˏ()))) {
                    arrayList.add(wapDomainInfo.ˊ());
                }
            }
            if (arrayList.size() > 0) {
                JsClientApi.registerUrlWhiteList(arrayList);
            }
        }
    }
}
